public class Circle {
    private double radius;
    public void setRadius(double r){
        radius=r;}
    public double getRadius(){
        return radius;
    }
    public double getPerimeter(){
        return 2*radius*Math.PI;}
    public double getArea(){
        return Math.PI*radius*radius;}
}
class Main{
    public static void main(String[]args){
        Circle circle1=new Circle();
        circle1.setRadius(2.2);
        System.out.println("周长："+circle1.getPerimeter()+"面积："+circle1.getArea());
    }
}
